package com.yuyang.springcloud.controller;

import com.yuyang.springcloud.service.MessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yu yang
 * @date 2022/11/1 -16:22
 */
@RestController
public class SendMessageController {
    @Resource
    private MessageProvider messageProvider;
    @GetMapping("/sendMessage")
    public String  sendMessage(){
       return messageProvider.send();
    }
}
